package ma.ac.onousc.gestionfi.budget.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;

/**
 * The persistent class for the type_budget database table.
 * 
 */
@Entity
@Table(name = "type_budget")
@NamedQueries({
		@NamedQuery(name = "TypeBudget.findAll", query = "select o from TypeBudget o"),
		@NamedQuery(name = "TypeBudget.findByIntitule", query = "select o from TypeBudget o where o.intituleTypeBudget = :INTITULE") })
public class TypeBudget implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID_TYPE_BUDGET")
	private int idTypeBudget;

	@Column(name = "DETAIL_TYPE_BUDGET")
	private String detailTypeBudget;

	@Column(name = "INTITULE_TYPE_BUDGET")
	private String intituleTypeBudget;

	// bi-directional many-to-one association to ProgrammeEmploi
	@OneToMany(mappedBy = "typeBudget")
	private Set<ProgrammeEmploi> programmeEmplois;

	// bi-directional many-to-one association to Rubrique
	@OneToMany(mappedBy = "typeBudget")
	private Set<Rubrique> rubriques;

	public TypeBudget() {
	}

	public int getIdTypeBudget() {
		return this.idTypeBudget;
	}

	public void setIdTypeBudget(int idTypeBudget) {
		this.idTypeBudget = idTypeBudget;
	}

	public String getDetailTypeBudget() {
		return this.detailTypeBudget;
	}

	public void setDetailTypeBudget(String detailTypeBudget) {
		this.detailTypeBudget = detailTypeBudget;
	}

	public String getIntituleTypeBudget() {
		return this.intituleTypeBudget;
	}

	public void setIntituleTypeBudget(String intituleTypeBudget) {
		this.intituleTypeBudget = intituleTypeBudget;
	}

	public Set<ProgrammeEmploi> getProgrammeEmplois() {
		return this.programmeEmplois;
	}

	public void setProgrammeEmplois(Set<ProgrammeEmploi> programmeEmplois) {
		this.programmeEmplois = programmeEmplois;
	}

	public Set<Rubrique> getRubriques() {
		return this.rubriques;
	}

	public void setRubriques(Set<Rubrique> rubriques) {
		this.rubriques = rubriques;
	}

}